package com.efeichong.project.domain.vo;

import com.efeichong.common.domain.BaseEntity;
import com.efeichong.mapping.Mapping;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * @author
 * @date 2020/12/06
 * @description 用户
 */
@Setter
@Getter
@ApiModel("用户")
public class SysUserVo extends BaseEntity {
    @ApiModelProperty(value = "创建人")
    private SysUserVo createBy;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "昵称")
    private String name;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "帐号状态（1正常 0停用）")
    private Integer status;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "性别 0女 1男")
    private Integer gender;

    @Mapping(poProperty = "parent.id")
    @ApiModelProperty(value = "父级id")
    private Long parentId;
}
